<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<include file="Public/head" />
<link href="__STATIC__/css/user.css" type="text/css" rel="stylesheet" />
</head>

<body class="body_bg">
<include file="Public/top" />

<div class="page_minheight">
<div class="login_tit login_tit_white">
  <div class="return"><a href="{:U('User/index')}"><i class="icon-fanhui"></i></a></div>
  <span>我出售的店铺</span>
</div><!--login_tit-->

<div class="page_in">
  <if condition="$lists">
  <foreach name="lists" item="v" key="k">
  <div class="order_li">
    <div class="order_sli2"><a href="{:U('Goods/goodsInfo',array('id'=>$v['goods_id']))}"><span><php>if($v[goods_type]==3){</php><img src="__STATIC__/images/sico_tm.png" /><php>}elseif($v[goods_type]==4){</php><img src="__STATIC__/images/sico_tb.png" /><php>}elseif($v[goods_type]==5){</php><img src="__STATIC__/images/sico_jd.png" /><php>}elseif($v[goods_type]==6){</php><img src="__STATIC__/images/sico_qt.png" /><php>}</php></span>{$v.seller_name}</a></div>
    <div class="order_sli"><div class="ll">交易状态</div><div class="rr"><php>if($v[status]==0){</php>待审核<php>}elseif($v[status]==1){</php>在售中<php>}elseif($v[status]==2){</php>审核不通过<php>}elseif($v[status]==3){</php>正在交易<php>}elseif($v[status]==5){</php>主动下架<php>}elseif($v[status]==4){</php>已完成<php>}</php></div></div>
    <div class="order_sli2 order_slia"><php>if($v[status]==0||$v[status]==2||$v[status]==5){</php><span class="bj"><a href="{:U('Home/User/add_seller',array('goods_id'=>$v['goods_id'],'type_id'=>$v[goods_type]))}" >编辑</a></span><a href="javascript:;" onclick="del_seller('{$v[goods_id]}')">删除</a><php>}elseif($v[status]==1){</php><a href="javascript:void(0)" onclick="xiajia_seller({$v['goods_id']})">下架</a><php>}else{</php>--<php>}</php></div>
  </div><!--order_li-->
  </foreach>
  
  {$page}
  
  <else />
  <div class="nocase">
    <div class="h1"><img src="__STATIC__/images/nothing.png"></div>
    <div class="h2">暂无商铺</div>
  </div>
  </if>
</div><!--page_in-->
</div><!--page_minheight-->

<script>
function del_seller(goods_id)
{
	url = '/index.php?m=Mobile&c=User&a=del_seller&goods_id='+goods_id;
	tip_confirm('删除后无法恢复，确定删除吗?',url);
}

function xiajia_seller(goods_id)
{
	url = "/index.php?m=Mobile&c=User&a=xiajia&goods_id="+goods_id;
	tip_confirm('确定下架？',url);
}
</script>

<include file="Public/footer" />
<script src="__STATIC__/js/global_after.js" type="text/javascript"></script>
</body>
</html>